package com.happok.onlineclass.usermanagement.setting.service;

import com.happok.onlineclass.usermanagement.setting.dto.SmsEnableDTO;
import com.happok.onlineclass.usermanagement.setting.dto.SmsSettingDTO;
import com.happok.onlineclass.usermanagement.setting.dto.SmsSettingInfoDTO;
import com.happok.onlineclass.usermanagement.setting.po.SmsPO;

import java.util.List;

/**
 * 功能说明
 *
 * @author : chenac
 * @version : v1.0
 * @date : 2021/10/12 11:20
 * @updateUser : chenac
 * @updateTime : 2021/10/12 11:20
 * @updateRemark : 无
 * @since : Springboot 2.5.2
 */
public interface SmsService {
    /**
     * 修改短信设置
     *
     * @param smsSetting
     * @author: chenac
     * @date:  12:12
     * @execption:
     * @return: void
     */
    void updateSmsSetting(SmsSettingDTO smsSetting);

    /**
     * 查询短信设置
     *
     * @param
     * @author: chenac
     * @date:  9:54
     * @execption:
     * @return: com.happok.onlineclass.usermanagement.setting.dto.SmsSettingInfoDTO
     */
    List<SmsSettingInfoDTO> listSmsSetting();

    /**
     * 短信平台禁启用
     *
     * @param smsEnable
     * @author: chenac
     * @date:  10:09
     * @execption:
     * @return: void
     */
    void smsEnable(SmsEnableDTO smsEnable);

    /**
     * 检测并链接短信服务器
     *
     * @param
     * @author: chenac
     * @date:  11:44
     * @execption:
     * @return: void
     */
    void checkAndConnectSms();

    /**
     * 查询启用的短信设置
     *
     * @param
     * @author: chenac
     * @date:  15:29
     * @execption:
     * @return: com.happok.onlineclass.usermanagement.setting.dto.SmsSettingInfoDTO
     */
    SmsPO getEnableSmsSetting();
}